---
id: 65823634a308cb4d6bcc5fa6
title: Step 13
challengeType: 20
dashedName: step-13
---

# --description--

Lambda functions can be valuably combined with the `map()` function, which executes a specified function for each element in a collection of objects, such as a list:

```py
map(lambda x: x * 2, [1, 2, 3])
```

The result of the example above would be `[2, 4, 6]`, where each item in the list passed to `map()` has been doubled by the action of the lambda function.

Modify your `print()` call to print the result of calling `map()` with `test` as the first argument, and `[2, 3, 5, 8]` as the second argument.

# --hints--

You should have `print(map(test, [2, 3, 5, 8]))` in your code.

```js
({ test: () => assert.match(code, /^print\s*\(\s*map\s*\(\s*test\s*,\s*\[\s*2\s*,\s*3\s*,\s*5\s*,\s*8\s*\]\s*\)\s*\)/m) })
```

# --seed--

## --seed-contents--

```py
def add_expense(expenses, amount, category):
    expenses.append({'amount': amount, 'category': category})
    
def print_expenses(expenses):
    for expense in expenses:
        print(f'Amount: {expense["amount"]}, Category: {expense["category"]}')

def total_expenses(expenses):
    pass
    
--fcc-editable-region--
test = lambda x: x * 2
print(test(3))
--fcc-editable-region--

expenses = []
```
